package Task03_1;

import java.util.Arrays;

public class TestString {
    public static void main(String[] args) {
        //如果int类型数组arr为null，toString方法返回字符串"null"
        int[] arr1 = null;
        System.out.println(toStringTest.toString(arr1));

        System.out.println("-----------------------------");
        //如果int类型数组arr长度为0，toString方法返回字符串"[]"
        int[] arr2 = {};
        System.out.println(toStringTest.toString(arr2));

        System.out.println("-----------------------------");
        //4)如果int类型数组arr的内容为{1,2,3,4,5},toString方法返回字符串"[1, 2, 3, 4, 5]"
        int[] arr3 = {1,2,3,4,5};
        System.out.println(toStringTest.toString(arr3));
    }
}
